Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

změna formátu chybové hlášky #213

Merged

Conversation

Jenyk
Copy link
Contributor

@Jenyk Jenyk commented Feb 10, 2015

z {"message":"pid not found (uuid:...)","status":404} na {"message":"pid not found","status":404}

nový formát dělá problémy v LTP NDK - při importu z LTP od Krameria se nejdřív kontroluje ne/přítomnost daného uuid v Krameriu testem zprávy:

private String PID_NOT_FOUND_MESSAGE = "pid not found";

if(textValue.equalsIgnoreCase(PID_NOT_FOUND_MESSAGE)){
return false;
}else{
throw new BusinessException("Unknown result message from kramerius: " + textValue);
}

Bohužel teď neumíme LTP upravit, aby se kontrola prováděla jinak (podle statusu..).
Importy shlukla idea omylem automaticky.

…"status":404} na {"message":"pid not found","status":404} (nový formát dělá problémy v LTP NDK)
pavel-stastny added a commit that referenced this pull request Feb 10, 2015
@pavel-stastny pavel-stastny merged commit d3f355c into ceskaexpedice:master Feb 10, 2015
@Jenyk Jenyk deleted the hotfix-404_api_message branch February 10, 2015 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants